/**
 * 编写并测试一个代表地址的Address类，
 * 地址信息由省份、城市、街道、邮编组成，并通过方法可以输出完整的地址信息
 */
public class Address {

    //省份
    private String province;

    //城市
    private String city;

    //街道
    private String street;

    //邮箱
    private  String postcode;

//并通过方法可以输出完整的地址信息
    public void show(){
        System.out .println("此地址是" + province + "省" + city + "市" + street + "街" + "邮箱" + postcode);
    }

    public Address(String province, String city, String street, String postcode) {
        this.province = province;
        this.city = city;
        this.street = street;
        this.postcode = postcode;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getPostcode() {
        return postcode;
    }

    public void setPostcode(String postcode) {
        this.postcode = postcode;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getStreet() {
        return street;
    }

    public void setStreet(String street) {
        this.street = street;
    }
}
